package org.daochong.fastdev;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.daochong.lang.Page;
import org.daochong.lang.PageResult;

public interface JdbcOperations {

	public Object value(String sqlId, Map<String, Object> params) throws SQLException;

	public Object get(String sqlId, Map<String, Object> params) throws SQLException;

	public List<Map<String, Object>> list(String sqlId, Map<String, Object> params) throws SQLException;

	public PageResult<Map<String, Object>> page(Page page, String sqlId, Map<String, Object> params) throws SQLException;

	public int exec(String sqlId, Map<String, Object> params) throws SQLException;
	
}
